package com.xyebank.ledger.service.jryzadd.dataProvider.sche;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xyebank.ledger.anon.MigTaskComponent;
import com.xyebank.ledger.enums.LedgerJobType;
import com.xyebank.ledger.service.common.MigServiceAdapter;
import com.xyebank.ledger.service.jryzadd.adaper.ZADDJryServiceAdapter;
import com.xyebank.ledger.vo.deal.ZADDJryCashCreditVo;

@Component
@MigTaskComponent(type = "zadd_credit_jry_")
public class ZADDJryCreditMigService extends MigServiceAdapter<ZADDJryCashCreditVo> {
	@Autowired
	private ZADDJryServiceAdapter zaddJryServiceAdapter;

	@Override
	public Integer deal(Integer fromIdx, List list, LedgerJobType jobType) {
		return zaddJryServiceAdapter.dealPayment(fromIdx, list, LedgerJobType.MIGRATE);
	}

}
